[PATCH] Revert "mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K"
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 23 Oct 2024 19:28:33 +0000 (21:28 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 27 Oct 2024 06:25:33 +0000 (07:25 +0100)
This reverts commit 8396c793ffdf28bb8aee7cfe0891080f8cab7890.

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name Revert-mmc-dw_mmc-Fix-IDMAC-operation-with-pages-big.patch

drivers/mmc/host/dw_mmc.c

index 41e451235f637383bd85595402f0c3c8cbb216a9..e9f6e4e622901a0e1a12544899613c04e7cc5791 100644 (file)
@@ -2957,8 +2957,8 @@ static int dw_mci_init_slot(struct dw_mci *host)
        if (host->use_dma == TRANS_MODE_IDMAC) {
                mmc->max_segs = host->ring_size;
                mmc->max_blk_size = 65535;
-               mmc->max_req_size = DW_MCI_DESC_DATA_LENGTH * host->ring_size;
-               mmc->max_seg_size = mmc->max_req_size;
+               mmc->max_seg_size = 0x1000;
+               mmc->max_req_size = mmc->max_seg_size * host->ring_size;
                mmc->max_blk_count = mmc->max_req_size / 512;
        } else if (host->use_dma == TRANS_MODE_EDMAC) {
                mmc->max_segs = 64;